<template>
	<view class="shopApplication">
		<view class="show" v-if="show">
			等待审核通过
		</view>
		<view v-else>
			<view class="boxInfo" >
				<view class="disFlex scale-1px-bottom box">
					<view class="left">工厂名称</view>
					<input type="text" :value="info.factory_name" disabled/>
				</view>
				<view class="disFlex scale-1px-bottom box">
					<view class="left">联系人</view>
					<input type="text" :value="info.name"  disabled/>
				</view>
				<view class="disFlex scale-1px-bottom box">
					<view class="left">联系电话</view>
					<input type="text" :value="info.phone"  disabled/>
				</view>
			</view>
			<view class="box10" >
				<view class="boxInfo">
					<view class="title">工厂信息</view>
					<view class="disFlex scale-1px-bottom box">
						<view class="left">工厂规模</view>
						<input type="text" :value="info.number" disabled/>
					</view>
					<view class="disFlex scale-1px-bottom box">
						<view class="left">地址</view>
						<input type="text" :value="info.address" disabled/>
					</view>
				</view>
			</view>
			
			<view class="box10" >
				<view class="boxInfo">
					<view class="title">营业执照</view>
					<view class="licensePic">
						<image :src="info.license" mode="widthFix"></image>
					</view>
				</view>
			</view>
			
			<view class="bottom" >
				<button @tap="getnav(router(`shopApplication`))">重新提交审核</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:'',
				show:'',
			}
		},
		onLoad() {
			this.getgs()
		},
		methods: {
			getgs(){
				this.http('/api/user/factoryInfo', 'post',{})
					.then((res) => {
						console.log(res)
						if(res.msg=='暂无通过审核'){
							this.show=true
						}else{
							this.show=false
						}
						this.info=res.data
					})
			},	
		},
		
	}
</script>

<style lang="less">
	.shopApplication{
		padding-bottom: 120rpx;
		.show{
			margin-top: 100rpx;
			font-size: 30rpx;
			color: #ccc;
			display: flex;
			justify-content: center;
			align-items: center;
		}
		.boxInfo{
			background-color: #fff;
			padding: 0 40rpx;
			.title{
				padding: 35rpx 0 25rpx 0;
				font-size:36rpx;
				font-weight:bold
			}
			.box{
				padding: 35rpx 0;
				.left{
					font-size:32rpx;
				}
				.right{
					color: #BEC9D7;
				}
				.cBox{
					display: flex;
					align-items: center;
					.text{
						color: #BEC9D7;
						padding-right: 26rpx;
					}
					.copy{
						width: 30rpx;
						height: 34rpx;
					}
				}
				input{
					text-align: right;
					color: #BEC9D7;
					
				}
			}
			.licensePic{
				margin-top: 40rpx;
				image{
					width: 100%;
				}
			}
			.btnBox{
				padding: 35rpx 0;
				input{
					padding-right: 20rpx;
				}
				button{
					color: #2291FF;
					border: none;
					outline: none;
					border-radius: 0;
					background-color: #fff !important;
				}
			}
		}
		.cardBox{
			padding: 35rpx 30rpx 40rpx 40rpx;
			.title{
				font-size: 32rpx;
			}
			.cards{
				margin-top: 36rpx;
				>view{
					width: 325rpx;
					height: 220rpx;
					padding: 34rpx 42rpx;
					box-sizing: border-box;
					background:rgba(245,245,249,1);
					border-radius:10rpx;
					image{
						width: 100%;
						height: 100%;
					}
				}
			}
			.explain{
				padding-top: 25rpx;
				color: #CED3DD;
				font-size: 24rpx;
			}
		}
		.LicenseBox{
			padding: 35rpx 30rpx 40rpx 40rpx;
			.title{
				font-size: 32rpx;
			}
			.imgBox{
				margin-top: 36rpx;
				height:400rpx;
				background:rgba(245,245,249,1);
				border-radius:10rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				.add{
					width: 150rpx;
					height: 150rpx;
				}
				.pic{
					width: 100%;
					height: 100%;
					border-radius:10rpx;
				}
			}
			.explain{
				padding-top: 25rpx;
				color: #CED3DD;
				font-size: 24rpx;
			}
		}
		
		
		.bottom{
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 90rpx;
			padding: 0 40rpx;
			z-index: 99;
			button{
				width: 100%;
				line-height: 90rpx;
				background:rgba(34,145,255,1) !important;
				border-radius:10rpx;
				color: #fff;
				font-size: 32rpx;
			}
		}
		
	}
</style>
